package com.jalarbee.core.user.business;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class RegistrationInfo {

	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	@Temporal(value=TemporalType.DATE)
	private Date registrationDate;
	
	@Temporal(value=TemporalType.DATE)
	private Date quitDate;

	@OneToOne(mappedBy="registrationInfo")
	private User parrain;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getRegistrationDate() {
		return registrationDate;
	}

	public void setRegistrationDate(Date registrationDate) {
		this.registrationDate = registrationDate;
	}

	public Date getQuitDate() {
		return quitDate;
	}

	public void setQuitDate(Date quitDate) {
		this.quitDate = quitDate;
	}

	public User getParrain() {
		return parrain;
	}

	public void setParrain(User parrain) {
		this.parrain = parrain;
	}

}